package org.jeecg.modules.jxc.inventorymanagement.commodityloss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.jxc.inventorymanagement.commodityloss.entity.JxcDamageList;
import org.springframework.http.ResponseEntity;

import java.util.List;
import java.util.Map;

import java.util.List;
import java.util.Map;

/**
 * @Description: jxc_damage_list
 * @Author: jeecg-boot
 * @Date: 2021-12-21
 * @Version: V1.0
 */
public interface JxcDamageListMapper extends BaseMapper<JxcDamageList> {
    /**
    * @author: Mr.Sun
    * @description:
    * @param sTime
* @param eTime
* @param type
    * @return java.util.Map<java.lang.String,java.lang.Object>
    * @exception
    */
//    @MapKey("id")
//    Map<String,Object> selectDamageOrOverflowList(@Param("sTime") String sTime
//            ,@Param("eTime") String eTime,@Param("type") Integer type);
    List<Map<String,Object>> selectDamageOrOverflowList(@Param("sTime") String sTime
            ,@Param("eTime") String eTime,@Param("type") Integer type);


    List<Map<String, Object>> selectListByTime(String sTime);

    List<Map<String, Object>> selectListById(Integer damageListId);
    /**
     * @author: Mr.Sun
     * @description: 报损报溢查询
     * @param id
     * @param type
     * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @exception
     */
    List<Map<String, Object>> selectDamageOrOverflowGoodsList(@Param("id") Integer id,@Param("type") Integer type);
}
